﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExceptionViewer.aspx.cs" Inherits="EPiBoost.Core.Plugins.Gui.Admin.ExceptionViewer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Exception viewer</title>
    <!-- Mimic Internet Explorer 7 -->
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <%
        var cmsPath = EPiServer.Configuration.Settings.Instance.UIUrl.ToString();
        var shellPath = cmsPath.Replace("/CMS/", "/Shell/");
    %>

	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <link rel="stylesheet" type="text/css" href="<%= ResolveUrl(shellPath + "1.0.456/ClientResources/epi/themes/legacy/ShellCore.css") %>" />
    <script type="text/javascript" src="<%= ResolveUrl(shellPath + "1.0.456/ClientResources/ShellCore.js") %>"></script>
    <link rel="stylesheet" type="text/css" href="<%= ResolveUrl(shellPath + "1.0.456/ClientResources/epi/themes/legacy/ShellCoreLightTheme.css") %>" />
    <script type="text/javascript" src="<%= ResolveUrl(cmsPath  + "1.0.431/ClientResources/ReportCenter/ReportCenter.js") %>"></script>
    <link type="text/css" rel="stylesheet" href="<%= ResolveUrl(cmsPath + "1.0.431/ClientResources/Epi/Base/CMS.css") %>" />


       
            <style type="text/css">
        
                .errorDetails{ margin-bottom: 10px;
                    background: #F1F1F1;
                        border-color: #AEAEAE;
                        color: #000000;
                        text-shadow: 0 1px 0 #FFFFFF;
                    padding:5px;
                } 

            </style>

</head>
<body>
    <form id="form1" runat="server">    
        <div class="epi-contentContainer epi-padding" style="max-width:100%">
     

        <div class="epi-contentArea">
            <h1>Exception Viewer <a href="?refresh=1" style="float:right; padding-right:10px"><img src="<%=ResolveUrl("~/App_Themes/Default/Images/Tools/refresh.gif") %>" /></a></h1>
            
             <asp:PlaceHolder runat="server" Visible="false" ID="plhDetails">
                <div class="errorDetails">
                    <H1>Error URL : <asp:Literal runat="server" ID="ltlDetailUrl" /></H1>
                    <div><strong>Host :</strong> <asp:Literal runat="server" ID="ltlHost" /><br/></div>
                    <div><strong>Referrer :</strong> <asp:Literal runat="server" ID="ltlReferrer" /></div>
                    <strong>Exception :</strong><br />
                     <asp:Literal runat="server" ID="ltlError" />
                </div>
            </asp:PlaceHolder>
            

            <asp:Repeater runat="server" ID="rptErrors">
                <HeaderTemplate>
                    <table>
                        <tr>
                            <th>Date</th>
                            <th>Category</th>
                            <th>Status Code</th>
                            <th>Url</th>
                            <th>Message</th>   
                            <th>Details</th>                    
                        </tr>
                </HeaderTemplate>

                <ItemTemplate>
                <tr>
                        <td><%# Eval("LogDate")%></td>
                        <td><%# Eval("Category")%></td>
                        <td><%# Eval("HttpStatusCode")%></td>
                        <td><%# Eval("Uri")%></td>
                        <td><%# Eval("Message")%></td>      
                        <td><a href="?details=<%# Eval("LogDate.Ticks") %>">Details</a></td>              
                    </tr>              
                </ItemTemplate>


                <FooterTemplate>
                    </table>
                </FooterTemplate>

            </asp:Repeater>
        </div>     
            </div>
    </form>
</body>
</html>


 